Documentation and minor problems