improved implementation of RNNs and added `save_records` to push_monitor function.
added docstrings
Merge pull request #1259 from jych/master_jych

Added save_records to push monitor function and updated implementation of RNNs