Implement souce code framework.
Merge with upstream.
Add copyright.
Merge pull request #2 from Deyuan/master

Merge source code framework.