all code updates for pkgtool version 1.3.3.0

(fixed bug issues with keyloading funcs borrowed from scetool source)