added comments to directory.rb file