Merge pull request #1 from svedin/master

Fixed typo
Simplified a bit.
More consistent code style... perhaps.