Added finalize class to assist closing files, read_struct convenience function.
Add channel to replace values while reading struts.
Tweaks and cleanup.