Implementation and texts about Rain's algorithm.