Finished seperation of code, got a printer rather than a formatter though.
Merge pull request #8 from irl/seperate-logic

Finished seperation of code, got a printer rather than a formatter thoug...