Add divide feature to api, close #8