Added XML Documentation Comments to most methods

Added comments to most of the public or internal methods.