Add the tidy.txt and some write function in script