Fixed Wanings
Added runtime and compile time debugging
Added Panic
use snprintf
add ... for message to long to format