add composer and refactore libs
add composer and refactore libs