Implemented function to read definitions into an array, skipping blank lines. Probably still very fragile.