Added some comments. Added reading of local file