Fully update documentation.
Removed unsed function.