Bunch of stuff working. Added java tests. Need to fix UI