Extended multiply/divide, fixed remainderScaling, added more tests