Fixes for library code and documentation.
More rubocop assimilation
Starting work on test suite