Merge pull request #2 from drkibitz/master

$base_uri argument, and cleanup thanks to drkibitz
Remove unused members
Fix format inconsistencies
newline after methods