no need for JS Comments in the license
renamed retrieve to restore
introduced onEnd, autorestore and did some cleanup
added some comments
worked on readme