2nd Draft of Modeling Code

Code performs as intended for parts 1,2, and 3 of the project.
Additional work may be necessary to ensure more accurate modeling.
Comments will be added tomorrow. Also may be separated into three files
for parts 1,2 and 3.