fixed bug, model compiles, runs, verified cacluations by hand