Refactor libdoc to javadoc