GenerateInput function back in the game

i have inserted some first functionality. Still long way to go :-)