Move auxillary script files to a 'lib' dir.
Add lib files.
Add example.