KSTool Main program