Added max depth to file write

	* and changed a bit the display
	  in the text gui

Signed-off-by: sebhz <seb@zyglute.fr>