added preference setting via object and updated readme