added missing braces for while loop
Merge pull request #10 from lesliep/master

added missing braces for while loop