Improved stub-generate script: added status messages