Fixed 'prefs.lua' folder bug, added more comments

Fixed a bug where the game would create a folder called 'prefs.lua'. It
was old code that I must've forgot to remove.

I also added more comments.