Changes in models and settings. Added templates and urls.