Modify block extraction

Now processes file into nested lists.