 var Model = _.module(
     {},
 
-    //add a new todo entry
+    //Add a new todo entry
     function add_todo (state, title) {
         //check that it's not empty before creating a new todo.
         var trimmed_title = title.trim();

        return { todos: state.todos.concat({title: title, completed: false}) };
    },

    //mark a todo either active or complete
    function toggle_status (state, data) {
        return { todos: _.map(state.todos, function (todo) {
            if (todo === data.todo) return _.assoc(todo, 'completed', data.completed);

        }) };
    },

    //Clear completed todos
    function clear_completed (state) {
        return { todos: _.reject(state.todos, _.flippar(_.at, 'completed')) };
    },

    //Save the entire app to localStorage
    function save_app (state) {
        localStorage.setItem('pasta-todo', JSON.stringify(state));
        return {};
    },

    //Recover the app from localStorage
    function load_app (state) {
        return localStorage.getItem('pasta-todo')
            || { todos: [] };
