added PANIC macro and function
added ASSERT