Added a fair number of new functions.
Logic for stuffing empty records sometimes does not work when add_spec option is active. Fixed.