added inverse Unit function; coordinate testing