repair checksum functions, tested OK now
command strings use generators now