Add java docs to new constructor