Changed the printing mechanism for analyzers.
A function is added to get the simulation result as string.
So the user can get the result by calling this method in REPL.