Update composer.json

- Add explicit library type
- Fix namespace trailing slashes.