Update main function

Created logic to handle results from helper function. Dictionary to
handle output from each helper function. Updated entry function with
elif instead of just if