added exception specifiers to cpp files