Directory Listing
more cleanup and moving of arch-specific stuff in script itself
restructuring and improving code all over
added some skeleton