Reduced a bit of complexity and added some micro-ops.
Nothing here is of any major consequence, but I am getting myself familiar with the codebase and made these teeny tweaks. I also noticed this library requires mbstring, which could be an issue for some. I added that extension to the composer.json so people find problems quicker if they dont have it.