fixed alex warning and changed doc to pdf