fixed "[line -1] unexpected end of code" and useless error printing in monkey