bugfix: if the key ended with '.' the p pointer would have ended up pointing past the boundaries of the key string
minor updates to the TODO file