updates to gem meta

Standards and conventions.
updates to the test suite

standards and conventions.
updates and cleanups to the lib

No behavior changes, just style and conventions.
Merge pull request #5 from redding/kr-cleanups

Updates and cleanups