add tools
add cmakelists
fix some bugé