fix cut off border in diagram
initial cli implementation
tests :tada: