CRTP

Some minor work to CRTP
Merge pull request #6 from ckarcz/new/chris

CRTP