Add the possibility to change filename extensions for models class file.

Hello,

I suggest a small change to allow coders to choose their own filename extensions for their models.
(I had the problem during the creation of a framework)

Hoping that it's correct and usefull for you.

PS: Sorry for my english, I'm french student!