added loop

for iterating through inputs, added a printout method for printing
attributes and html elements to the screen