Add travis-ci support.
Add support for class registration (#12).
Update documentation for class registration.