Merge pull request #9 from JoeTheDentist/refactoring

Refactoring
Ignore log directory
Static analysis, performance checks ok. Updates #5.