breaking featdir out into separate class file
moved featdir class to a separate file
added load_dir function