Fixed incorrect cast to 32-bit in 64-bit division. Changed all instances of template parameter p to uint8_t. Added a bit of info about Q to the README.