Added example code, tidied up #includes.