Place the reverse order check correctly
apply_diff: error if given an unrecognised ed command
Error if there is no end (".") to the lines inserted