Added a few comments to important methods. Cleaned up imports in all
classes. Tabs -> spaces, again.