work on the logging system.

added a new command line argument "--log-dir" it lets you specify where the log files should go by default it puts the log files in the current directory