added do while loop in main to keep programme open unless quit command is given at main menu