Made overwriteEntry private
The other methods should be used anyway. Also made the comments a proper
javadoc.