Java back-end fixes

* All tests working
* Buffers implemented