refactor thumb1to2 as a class, add --persist, improve error messages, and fix qsub