subdivide functionality into multiple methods
Merge pull request #2 from maxogden/methods

subdivide functionality into multiple methods