Removed dead code; added XML documentation