Code cleanup for basic todo app