cleaned up comments. removed old code for determineDx() but not positive which approach was more efficient.