Added javadoc generation and packaging, as well as source packaging.
Added API documentation.