changed return type of update()
refactoring
added elements for question types
refactoring