beginning of formal bartMachine package