activity three commit

~Better keyword detection~ Edited according to activity 3 in the magpie
student lab.