tprintf implemented in dreap.cpp; cout removed