add code quality harness and fixes
Merge pull request #1 from diffsky/master

add code quality harness and fixes