fixed bugs, added file composer.json and rewrite readme file