refactor mist::mathutil; other adjustments
Merge branch 'master' of github.com:darkfall/UKN