added functionality for estimation; add demo data;