fixed up extract_from_fits.perl to work as expected.
altered generate_misalignments_package.perl so that it would
efficiently package up arrays that are used in more than one place.