Fix input loop bug and add daytime-dependant greeting