Fix code formatting and Checkstyle violations

Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>