added documentation. updated the index file