added the favorites system, some stabilisation of the writing module