Init project. origin code is from http://blog.csdn.net/liushuaikobe/article/details/7163368