Added Error Log/Output Log to mainActivity for ease of testing