altered calculations
wrote missing script line
was missing a couple of semicolons
wrote missing script line