Macros for printing introduced

To make the code simpler and DRY.
Merge pull request #7 from digineo/fprint_macros

Macros for printing introduced