minor fixes pre-demo

— fixed bug in serial computation
— serialize object to JSON properly (no more long-ass format strings)