addressed some scope, function, and comment issues

generally cleaned code.
added comments.

- removed storeLocally property.
- removed editByTag, editById, and editByClass methods.
- removed selectEditorInput function

+ added edit method to replace editByTag, editById and editByClass
+ changed localStorage to sessionStorage, is required
+ other small additions and changes