First version of trityper writer
Added test for trityper writer + bug fix writer