added printstring method
merged with master now includes max/min beta and printstring