added some comments and init method
commented out wrong code to make work