Added .gitignore (*.pyc). Moved logging logic to main.py. Added logging to file.