add Apache2.0 License
Refactor setup scripts