MySensors will have native support for sha204 and the source for usage and personalization of sha204 will be much more elaborate than this example so it does not provide additional understanding for the chip.
For information on installing libraries, see: http://arduino.cc/en/Guide/Libraries