fixed typos in example and added header