Fix syntax, comments and headers.