Added logging functionality.
Cleaned up ignore file.