removed global variables, error mesages are written to stderr instead of stdout, added function 'isNaN' and class 'conname', and some other changes.