fixed many issues in documentation and tried to add relevant stuff to m3 documentation