change ErrorList.Add to be more usable
add type checking and declaration checking
remove type checking code and revert compVar to stub