The Alpha Magnetic Spectrometer (AMS) on the international space station: Part I - Results from the test flight on the space shuttle