Fixed #37 and #40

It is now using line['about_file'], so it shouldn't have any issue related to #37. In addition, created the error.txt under the root of the generated_location if error exists.