Refactor towads github source