simplifying build code
adding support for travis CI and java style checks