Completely revamped structure to include everything in the main class.
Greatly simplified main if statement. Other cleaning.
Removed raw_input from functions. Separated write function.
Added ability to choose custom trconfig, database, and log locations from the command line.
Updated version
Removed test material