Java docs added

Licence header was added to this file while updating the entire code base ( for license headers)