1) Yeah, "END DEF" should be "END", I'm still thinking in another language. 2) It seems like that's just one of the quirks of this language.