refactored converter tool to make ts testable
added commandy properly
refacoring & unit tests
fixed permissions