Added composer file

Now you can download the library from Composer.
Little bug solved in the class file