Documentation and code updates