changed parse so that it kills plfs on an invalid key and fixed some com...

...piler warnings