build code framework and add some tools

build code framework and add some tools