move lib to src folder and add composer.json