updates, fixed lambda capture issue with icpc, added documentation for the newly added functions