fixed static constants issue for modes and added comments

constants stored in the dataholder now instead of resources, some
classes could not access the data in resources