Docs and tests

Major documentation update
Added a test/sample script for directory listings