Moved datacheck before reading of current coordinates.
Code cleanup
Updatedr readme file