fixed a bug in the accumulate function
there was a segfault due to the improper use of a stringstream in the exception call
removed the stringstream altogether, replaced with a standard string
also added serialization of the Accumulator denomination