Split code into multiple classes.
Style cop work
Added style cop and resolved issues in code.