added some comments and fixed some spacing
created first thing which is just enough to display the data into a file