improve c code readability and fix some warnings
rename and format python files, fix some mistakes
Merge pull request #108 from Boshen/master

improve code/