Add main script
Moved example out of lib folder
README with example