+ little comments and java docs were added