A whole lot of changes!

I won't list all of the changes here... just have a look at the commit messages and the diffs. Overall, I've just refactored, beautified (tabs to spaces, indentation, etc), modified (some), and removed (unnecessary) parts of the whole app. If you don't want the changes, I'll just work on my fork!