improved java doc and renamed some vars
Added basic commit functionality