Added basic status reporting, added header to output file, updated comments.