Remove throwstream stuff from cmakelists
Docs update
Update example
Add sorting functor for std::sort; fix Optimize()
Update documentation and examples