bugs fixed
updated util.h
Wrote preliminary cwd.