Added configuration file; Fixed a possible race condition; Cleaned up the mess that used to be my console logs;