Reformatted constant names

- Changed all const variables from upper-case and underscored to camel case. Frequent use of constants in upper-case made code less readable in general, and attempting to remain consistent with variable names in functions where apparently constant variables were modified diluted the meaning of the upper-case format.