Add withJavadoc setting

A pull request for issue #155