mostly just refactoring - making the code cleaner, neater, more readable and more maintainable
fixed a bug, disabled debug logging
pushed version number to 0.9.0