updated parser with ability to read atom numbers as well as types