loop grammar
cleaning and documenting