Changed exit code to 1 when word doesn't exist