more space related
lots of closure-related changes
fix stdout compile.sh junk
lots more refactoring and cleanup