Adding typelist and varlist to NewParser. Errors have been fixed. Pucong has tested this new version