Refactor cpg-load a little bit

Everything is now written to standard output and checksum is written as
hex number.
Modify cpg-load.sh for changed cpg-load output