many small changes to reflect only tutorials
init setup for class