Added argument error handling for rgen. Added terminal wrapper class (see.io.Terminal).