Added proper exceptions.

Added exceptions that are to be raised if you try execute
illegal actions.
Some clearance.
First skeleton of the process module.