Added log files, almost done implimenting them.