minor fixes and tmc download --upgrade (closes #2)