package gameOfLife.packageTracker.main;

import java.io.FileNotFoundException;

import javax.xml.stream.XMLStreamException;

import gameOfLife.packageTracker.exceptions.InvalidUserNameException;
import gameOfLife.packageTracker.shipping.Package;
import gameOfLife.packageTracker.shipping.User;
import gameOfLife.packageTracker.tracking.GPS;
import gameOfLife.packageTracker.util.GPXReader;
import static gameOfLife.packageTracker.util.Utilities.*;

/**
 * Main method only<br>
 * Starts the application
 * 
 * @author Krishna
 *         
 */
public class Main
{
   /**
    * <b><i>Only</b></i> to start the application
    * 
    * @param args
    */
   public static void main(String[] args)
   {
      try
      {
         User user = new User("Krishna", "Ozaren", "Password");
//       for the gpx files, if you want to test other ones just put in the name of the file instead of the <name>.gpx
         String gpxLocation = "..\\..\\..\\..\\gpx_files\\Annapolis_to_WestPoint_10sec.gpx";
         GPS gps = GPXReader.load(gpxLocation);
         Package pack = new Package(user, "Music CD", 153481438, gps);
         convertDistance = ConvertDistance.MILE; // from Utilities
         convertTime = ConvertTime.HOUR; // from Utilities
         for(double d : pack.getGps().getSpeeds())
         {
            System.out.printf("%8.5f\n", d);
         }
      }
      catch(InvalidUserNameException | FileNotFoundException | XMLStreamException e)
      {
         e.printStackTrace();
         return;
      }
   }
}

@@ -32,19 +32,17 @@
 er.main;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -63,35 +63,33 @@
 tFoundException;
-%0D%0A%0D
+%0A
 %0Aimport javax.xm
@@ -116,19 +116,17 @@
 ception;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -187,17 +187,16 @@
 ception;
-%0D
 %0Aimport 
@@ -238,17 +238,16 @@
 Package;
-%0D
 %0Aimport 
@@ -286,17 +286,16 @@
 ng.User;
-%0D
 %0Aimport 
@@ -333,17 +333,16 @@
 ing.GPS;
-%0D
 %0Aimport 
@@ -382,17 +382,16 @@
 XReader;
-%0D
 %0Aimport 
@@ -444,16 +444,14 @@
 s.*;
-%0D%0A%0D
+%0A%0A
 %0A/**
-%0D
 %0A * 
@@ -470,17 +470,16 @@
 only%3Cbr%3E
-%0D
 %0A * Star
@@ -500,14 +500,67 @@
 tion
-%0D
+.
 %0A * 
-%0D
+Currently implements a test User and test GPS files%0A *
 %0A * 
@@ -578,27 +578,12 @@
 shna
-%0D%0A *         %0D
 %0A */
-%0D
 %0Apub
@@ -600,20 +600,21 @@
 Main
-%0D
 %0A%7B
-%0D
+%0A   
 %0A   /**
-%0D
 %0A   
@@ -663,17 +663,15 @@
 tion
-%0D
+.
 %0A    *
- %0D
 %0A   
@@ -688,17 +688,29 @@
 args
-%0D
+ the arguments
 %0A    */
-%0D
 %0A   
@@ -751,15 +751,13 @@
 rgs)
-%0D
 %0A   %7B
-%0D
 %0A   
@@ -762,25 +762,24 @@
      try
-%0D
 %0A      %7B
 %0D%0A      
@@ -762,33 +762,32 @@
      try%0A      %7B
-%0D
 %0A         User u
@@ -834,17 +834,16 @@
 sword%22);
-%0D
 %0A//     
@@ -952,17 +952,16 @@
 ame%3E.gpx
-%0D
 %0A       
@@ -1045,17 +1045,16 @@
 ec.gpx%22;
-%0D
 %0A       
@@ -1093,17 +1093,16 @@
 cation);
-%0D
 %0A       
@@ -1164,17 +1164,16 @@
 8, gps);
-%0D
 %0A       
@@ -1223,33 +1223,32 @@
 / from Utilities
-%0D
 %0A         conver
@@ -1290,17 +1290,16 @@
 tilities
-%0D
 %0A       
@@ -1341,17 +1341,16 @@
 peeds())
-%0D
 %0A       
@@ -1348,25 +1348,24 @@
 )%0A         %7B
-%0D
 %0A           
@@ -1397,17 +1397,16 @@
 %5Cn%22, d);
-%0D
 %0A       
@@ -1408,25 +1408,24 @@
        %7D
-%0D
 %0A      %7D
 %0D%0A      
@@ -1412,25 +1412,24 @@
    %7D%0A      %7D
-%0D
 %0A      catch
@@ -1505,17 +1505,16 @@
 n e)
-%0D
 %0A      %7B
 %0D%0A  
@@ -1509,17 +1509,16 @@
 %0A      %7B
-%0D
 %0A       
@@ -1539,17 +1539,16 @@
 Trace();
-%0D
 %0A       
@@ -1560,17 +1560,16 @@
 urn;
-%0D
 %0A      %7D
 %0D%0A  
@@ -1568,15 +1568,12 @@
    %7D
-%0D
 %0A   %7D
-%0D
 %0A%7D
-%0D
 %0A

Add JavaDoc comments