Fix/format sources

Format java sources by applying codestyle and organizing imports.