Documentation and logging system