added some basic logging functionality - log to file