added basic log class for adding log entries and printing them later; further you can just print logs added in a specific function