Made the following changes
1. Minor changes to docs
2. Replaced swap with inplace_swap