corrected XML files

XML prolog is now in the first line
improved program stopping process
able to process commands

InputReader renamed to ConsoleReader