Replace inline comments with documentation fields