Rewrote the prototype for the todo objects and other general improvements