Implemented parser for references. Extended config-mm as needed.