Improve the structure of the framework of the project

By adding macros and namespace to the framework,now it's easier to add
other models to the framework to run.