Modified the way errors are handled
Corrected some bugs & modified error reporting
Code refactoring
Modified the interface of package psdock
Corrected a bug when parsing --command