fixed bug in data return value
extended peak comparison logic so that once the goes peak is chosen the 131 peaks are compared against it to see if there is a better peak match
changed flag settings
a few necessary functions for checking status of data