Light debugging. Unit tests now complete. Added autoflush to streamwriters.