Update java code to use less mem
Merge branch 'master' of github.com:treangen/metAMOS