update version to 0.0.2 add some comments / created logAttempts function