made pep8 compliant

also removed second initialisation method in the writer.

See issue #1