Added unit tests for some of the new functionality;
Util::prepareScript() now works properly with stream arguments;
Doc and CS fixes.