Removed Function return type from Template

Also added the destructor for the Logger