added argc and argv cli arguments, condednsed code and updated notes