Added const to char* function arguments where appropriate