added code and text file to detemrine rough inside/outside of the survey