Updated coding style to improve readability.

for( -> for (
if( -> if (
function( -> function (

etc.