Added missing xml docs
Removed trailing whitespace
Internalized attributes
Some reflection changes