Changed carriage return char to the more simple \r.
Removed in between used include of tuple.
Replaced old NULL in cache code by nullptr.