FlagsEnum class added. Consistent definition of flags enumerations created.
#region Preconditions removed from the code.