Add default value for type

It closes #56