added comments to header
improved style