New angle and matrix classes, small fixes in other classes