Added comments, to use function and structure
removed redundant declaration in header file
reverted typo for xds with mprint