added instructions to input fields
clean up code