Improved warning message and fixed doc header