Update main.cpp

Adds initial support for logging to log.txt.