Add support for generating models inside a namespace

closes #64