removed do notation in compileProgTop
Case'ing on type when adding inParam in compileProgTop