Real-time Iterative Learning Control: Design and