input improved to accept lambda, scf and fld.
improved input merged, removed debugging output