[PLAT-6858] added javadoc, extended error tests, deleted unused code