Cleaning and documenting code