Examples and test script updated.