Updating like comments

added the protected and javadoc