Fix updateData function to work with option as well
Write a bit of documentation
Documentation