Cleaned up, fixed a last-second bug, and removed the main method that
was there for debugging purposes. Finished.