import from svn
add (untested) CRC checking code
explicitly mention the different licenses
reduce code size by replacing unneeded int -> uint8_t