Added additional functions for the todo including ability to choose whether to add an item to the beginning or end of the list. Also changed some if/else statements to switches