Fixed lines after non executed if statement with no else block not being run. Added input buffer clearing to the cin, cout and pause commands.