Devil writer

Fix, bad orientation and fill method.
+ small refactors