Changing doc to pointer to avoir need of yaml header