Added code styling and java test