adding java as submodule
makefile changes
removing debugging snippet
adding debug control script
correction in print_environment