Added API for resolve #5
Updated readme and tests, resolved #5