Try to autodetect 512k checksum blocks... wow. I guess you have to hard code. Also fix array overflow bug