Dir listing working

very very raw code. need a ton of refactoring