Added code climate coverage to travis build
Minor refactor of Scanner