[PLT-415] Added java doc and cleaned comments.