Added method to get tool's version
Use PrintWriter instead of PrintStream