fixed if statements that should have been elif statements.
Merge pull request #8 from lesserj/master

fixed if statements that should have been elif statements.