sanity_check added. wip
some print messages updated