fixed a bug in TermText & added command line features + changed license from MIT to Apache