Cleaned up a bunch of the source code. Converted the separate activities into fragments. Lots of small fixes.