Do not allow any nonwhitespace content after names

The parser was accepting content after names on name lines which causes
errors in the transform functions due to unexpected data.
WIP: Reworking the file organisation for the 0.5.0 architecture I want.