adagrad updates and basic read txt support on input streams
update adagrad