Clean files

Tried running the code against code climate. The original score was 2.04. Have cleaned the files to reach a score of 2.7.

Added code climate metrics to the readme file.