Fix grammar
Added descriptions and beautified some code