better error handling
display day number in output
better naming