Fixed the modeling equation and changed ints to floating point numbers t...

Fixes to the issues we encountered in lecture. See #9.