Fixed several small parsing issues related to whitespace. Fixed up a couple of crossed veor variables. Adding a whole missing variable tree for headet beds!.  Thanks to George Roberts for noticing bugs