Made some function definitions more consistent.

More 'const's and some 'std::string's instead of 'char *'s.