Bug fixes, added file output, and finished the project.