Fix code formatting and adjust some sentences in Event doc