First commit
Converted to OOP. Will write README on how to use later.