text1r: working version with complete documentation