Added Task and addTask, moved writeList outside of document ready so other functions can access it.