fixed crashes in the VC Generator
gave programdotexp's a programtype and mathtype
added statements to the constructor
Merge pull request #140 from yushan87/mini-fixes

Mini fixes