Added mode docs. Fixed a bug in link formatter.