Now generating models.

- Improved the generating bits. It generates a model now.
- Added a bit of documentation
- Improved parameter handling