proper indexing of elements and models in data.txt, added end of line to
fix plum not processing data
inserting elements correctly