Cleaned up code. added code climate badge