v0.3 2: v0.3.1

Fixed it so that it actually writes the files properly and fixed the
example to work