BUG: Fix readconfig, cut config from maketracts.sh, add logging