remove useless project files.
add global variables, init functions(partly).