fixed added midding fk0edges()
fixed test routines and nl analysis with new model organization