inputStream is now parameter of argv, main cleaned