added comments / proper method naming and split example / class into separate files