split the writer stuff to a new class

refactored some code, almost done.
TODO: seksual reproduciton …