output fleshed out, not tested yet
testing round 1: does additions and subtractions to log correctly, rounding error present due to int multiplication
rounding error solved