common.h added
Added logging and delegate methods