MOD: modified histplot
ADD: sigmao and sigmap assignment functions
MOD: further improvements