Correct exit (for single threaded app at least:))

Some useful macroses for printing
Variable data sending