changed output for java install to include installed packages
functionized get_input, completed initial checks