further refinements to manifest creation
tidy up
support listing and writing manifest files