added print;empty list commands; added when int is -1 print, empty list and continue parsing document