adding common weight variable
passing histogram names in scan
removing some hardcodes and adding needed weight funcs
adding weight variables
adding weight func