Cleaned up multiplication algorithm code. Improved result printing. Implemented type sanity checking.