checking the functionality of GenerateInput

i turned temparly the GenerateInput function to a main function in order
to check the functionality and build the associate arrays and the html
format of the output.