comments and logging