Updates to lz4file, and code cleanup