Fix formatting

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
Add JavaDoc

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>