Change parser API, write docs for parser API