added comments to directory class