Added proc interface.
Moved proc functions to separated files.

Also added an installation script. It does some checking,
though it is very rudimentar.