Fixed some bugs, add one more example file, add unit tests and updated composer file to required dev packages