Testing harness

Updated rubocop to 0.21.0 and fixed all issues found.