added composer.json and moved classes to lib folder