Make code more flexible; allow specification of treetagger path. Fix serious bug with sm files (introduced in the last hours).