read markup, build a tree structure of the commands