Automated parameter search. Fixed static bug in expand.def. Many more things.