Scripts with examples and minor fix