added function get_adjacent_coordinates

to address #766
added more tests
cleaned up code and tests
renamed based on input from @jrrideout
expanded on doc string
cleaned up some terminology
Merge pull request #767 from gregcaporaso/issue-766

fixes #766