Standardize comments in paint function