More comments and slight syntax fixes for readability.