removed redundant #ifdef DEBUG around asserts because the compiler already strips asserts by default in production builds
fixed STAssert in place of NSAssert