add limit for steps to avoid runaway memory consumption by collision handling
Added debug log level setting
Merge pull request #431 from sapier/dtime_clamping

add limit for (collision handling) steps to avoid runaway memory consumption