updated index, added documentation