Reorganized the package structure of the app so it's (hopefully) more logical.
Added some additional comments on some relatively undocumented code.