Handle blank ending line appropriately
Add mode enum and cursor constructor function

Use 'g' to move to the beginning of a file and 'G' to go to the bottom.