Added interpolation functions and sorted out invert()/inverse()