fixes build error in example + update documentation