the whole proces was put into one for loop to minimize the document size, some aditions were made and bugs about the output formating were fixed, program is now ready for input formating implementation, and interpolation function integration