Updated documentation and added cargo example