Improved doc and fix bug in puppet script