Update examples
Update lib to match documentation