all correlation functions seem to be fixed. wrote a numericize function
to check for ranges, neg numbers and turn them into floats.
removed usage of 'type' as a variable name. fixed a numpy bug.