More documentation and interface to tm package