Updated buildfile to write javadoc