fixed CFL condition, added more to debugging function