add coding style guideline
fix diagd test complile bug