Fixed file handling, disabled LAYER keys

All layouts seem to have LAYER keys, have multiple LAYER keys, and
have them all over the place. If they're added to the optimalization,
they seem to dominate. Ignore them and hand optimize for now.
Lower bounds on coverage, upper on length for output