updated parser to handle no parameter formulae
finished with jeff wu