v0.4: implementing chksum() as suggested by akozadaev, thanks :D