improved object formatting, closes #35