added documentation, fixed checkstyle issues