improved readme

Fixed:
* some obvious compilation errors
* indentation consistency
* added java syntax highlighting