Added 'ls' implementation and changed scope of Directory's fileMap property.