Documentation added. More fixes