Now supports server supports sending input to the server for the program to run

The input is handled using the Scanner class tho Buffered reader should work fine as well

modified the exception handeling to display exception similar somewhat to eclips while handeling a special case where the Scanner throws the exception inside the next method when the program reads an input that ended so I had to move one thread up inorder to print show the line that the exception actually occured in.

changed the paramters of runInservlet and runCMD function by passing in an object instread of name and program