Modified IPApplicaiton

Modified to work with Command line arguments.