Added macro to define base XML node name

Addresses concerns in issue #63

Also cleaned up a small amount of leftover commented out code, added const to some things that should be const, and a minor optimization in the JSON search to use strncmp in one instance.