implement some options
enhance error check
fix to update mac-local script
add Apache2.0 License
Refactor setup scripts