Cosmetics: Rename some variables to make clear they are member variables.
Release the DS interfaces in the inverse order they were created.
Use ASSERT everywhere for consistency.
Fix line endings.
Recommend turning "autocrlf" off.

"autocrlf" is mostly useful for cross-platform projects and it tends to hide the real line-endings in the repo.
Files modified by "autocrlf".