Refactors marketstat code into a module.
Formatting
Closes #8.
Merge branch 'feature/8' into development
Merge branch 'development'