added auto save feature

the current doc gets saved after every 10s.
Added the "New" button for starting a new document
added auto save feature