Update main.c

updated add to list and took a shot at void quit scanner