Fixed up some error handling in parsing for maxima. There should be a better way to do this.