Rename pushEndpoint to endpoint. Fixes issue #31