finally got program to compile and run, need to fix floating overflow issue and finish implementing this