Some changes in mult. and testing.
Add math functionality and tests.