General purpose functions

there is one for getbaseline, getselectdate, and getnadirvalue.
Currently placed in `code` subdirectory. Will need to find a different
location since they're not technically for QA checks