Refactored log
Refactored to compile on mac
Added .dirstamp to gitignore
Fixed