Replaced booleans with the update flags class. Also, added some more
documentation.
Updated some documentation.