support mercurial; clean up docs