add: option 'a' for autochoose
fix: set tr position to -1
doc: updated to use funcfile and test cmdline output