implemented edit and remove

fixed use of scanner.nextInt. instead use Integer.parseInt(scanner.nextLine())