cleanup
rename trail to trace
remove const indelCost
interface for console app