There is probably a better solution for this, this was the simplest I came up with. Changed some variables types from uint8_t to byte to make simple for common arduino user.
For information on installing libraries, see: http://arduino.cc/en/Guide/Libraries