Fix pod doc in header of file
Fix copy-paste bug where objects graph was never updated.
Refactor script to pure POSIX sh compliance.
Also includes recommended fixes