Character consumption done right. Character reference consumption implementation started