Add quality control on build
Improve code style