remove unused lib
cleanup, added comments, generated JavaDoc