Fixes #24
Merge pull request #25 from matak/master

Resolve a small regression issue - class init wasn't using the proper Endpoint configuration