add disk space error checking everywhere
improve comments and remove miscelania
Merge branch 'errorchecking'