Documentation and improvments.