Bug: fixes #1, allows inserting namelists at top of file