pep8 and naming fix
fix loop number
add performance measure