added save story functionality and fixed repeating last input bug'
'merged'