API changes; testing gravity API functions in separate file --KW