improved logging
added very basic file logging to log.txt