made script to read text files and setup models