QC functions and test functions

Have completed initial authoring of all remaining QC functions plus test functions. Remaining work includes creating a test case for an >= 2D datqc_localrangetest, ensuring a consistent commenting style for all functions and confirming functions work/debug as expected once lookup tables are available.