Merge pull request #24 from atgeirr/master

A motley collection of changes
Change example: handle zero porosity.