Macros for printing introduced

To make the code simpler and DRY.
Configuration for Travis-CI added