Added some xml documentation

and fixed some style cop warnings