The last of the simple fixes for issues in #4
Treat keynames as keygroups with respect to #
Fixed bug with regards to escaping backslashes