added some more comments to describe parameters, also directory change occurred in the previous commit