Added the ability to init the pools via the command line.
So the basic usage con be simplified.
Also the module's init function was not cleaning up after itself on errors.
And it was returning incorrect error values.