Code Cleanup

Remove unnecessary code.
Lil code style fix.
Moving devtools to head

Moved devtools to head so it can be opened even if app fails to load.
Fixed some copy pasted comments.
Save application state

Application opens where last closed and some code cleanup.