Add usage in comments
Add phpdocs
Allow returning bytes as string
Add phpdocs
Add comments
Fix whitespace
Pass all Gateway tests