Introducing a method to init todo list, and style improvement