Added Cargo support to examples, Removed unnecessary lifetime parameters