fixed minor issues with variable names not matching betwwen header and c files.