main script added

The script is initialized with the data reading code