add 'rake testcode' task to run source checkers plus rspec
refactor to remove complexity
Merge branch 'dev'