Merge pull request #26 from JonathanO/master

New json encoding implementation to resolve issue #25
Added license to composer.json