Corrects autoload.
Fixes James' problems.
Corrects definition check.
Adds assertions for match errors.
Corrects namespace in documentation.
Merge pull request #2 from ht2/issue/autoload

Fixes James' problems.