fixed some obvious compilation errors, indentation consistency and added java syntax highlighting