Move mechanism conversion to main. Close #23
Also update documentation.