Added comments, upgraded some error processing/messages, allowed for multiple directories to be removed by rmdir, made several processes more obvious.