Extend documentation and sample script