Added comments to directory.rb