Changed frame type from uint8 to unsigned char
Fixed syntax mistakes