Revamp build, add examples, add main.js