ugly function for reading in and modifying ratran model