removed for each test from let stmt branch
removed stale printout statements
factorized switch cases
removal of letexpression function