Improved documentation and cleaned up test failures