reformat, added missing test for setflag/unsetflag for exceptions
Added dedicated license file