Added checks for NO_GPS, LOW_ALT, PART_SPEC quality flags.

Also fixed bugs with initializing storage arrays with fill values and removed an unused function.