Setting up code for modes
Still working on file editing
Implemented better file opening
Better comment