adjust debug prints and multiplication algorithm