Added printing component and integrated it.
Merge pull request #273 from henningmu/issue#266-unify_printing

Added printing component and integrated it.