Added printing component and integrated it.

closes #266