Do error handling for missing includes and introduce logging so that we can later on log to a file