Add java doc to all functions