fixed indentation
removed functions from loop
Merge pull request #1 from shackbarth/master

formatting conventions