Fixed error that made success rate and error the same. Still no  sin function.