Added #define DEBUG to enable ASSERT functions

Have an inkling that I'm dereferencing incorrectly...