cleaned up associate code a bit
Merge pull request #9 from mhearne-usgs/master

cleaned up associate code a bit