Add markdown func ref, fix typos in doc