cleaned up code example and code comments a bit