Changed some functions that don't modify their arg to take const arg.

It avoids caller having to strdup to create (char*) from (const char*).
Merge pull request #1 from janmejay/master

Changed some functions that don't modify their arg to take const arg.