added documentation and move counter