doc as kwarg and string stripping

added option to directly give doc as a keyword argument. And string stripping for p- properties