add get_parents function to supply points
misc formatting and cleanup
Merge pull request #17 from dimagi/parent

add get_parents and misc cleanup