Debbugin functions in convert.c + TODO update + small main changes