Change to ndebug

plus some whitespace cosmetics plus a short demo usage of assert in proc_rank and proc_num