Added javadoc comments.

Signed-off-by: alinvasile <alinachegalati@gmail.com>