Added helper functions, added check for last page
Removed deleted file