Added CRC, cleaned code and translated comments