Fix constructor documentation and example