Update build.sh to remove .cache after build
Add logs and more defaults.
Complete refactor, add new example code