Ruby's code

Please merge my branch docToText