Fix delete resurrection #512

cs512 regression test

handle multiple active manifests during delete\n This fixes #512

slight refactoring and documentation

more documentation for the helpers of gc_active_manifests/3

fix typos and formatting

refactoring and code cleanup

more refactoring