added rnn, checked pendulum add bug