new option -p_tail and updated documentation