Updated module API to include range methods; other minor fixes