Bug fixes and feature enhancements - Closes #1

- Bugs
-- Fixed the key press bug
- New stuff
-- Window position is saved when the editor is closed
-- Added a close button