Improved documentation and scaladoc.