Added a file output system.
Still need to:
Localization support
Clean up code