Added optional file logging
0.0.7