add code-check.sh to improve code quality