Minor tweak to chunk unloading
Add missing license headers