Some basic refactoring.
Integrated SimpleCov, Code Climate and badges.