add log function & pep8 check && copyright license