removed cursor only on linux machine
Improved way to parse the file; cleaned up the code

The number of column was not correctly recognised because of the way newline characters depends on the platform on which we are running the script. More robust and easier method was implemented.
clean up
added measure unity for integartion time