Added friction demo
Added changes in the documentation
Added comments and some small fixes