calculating expected entropy, bug fixes for manip sensor model