updated the documentation and fixed some links