Fixed header. Changed type for typ.

Fixes #17