better error messaging, included test files
fixed loop expression bug. nested loops are now possible