added connect method to retrieve api. refactored responses. updated samp...

...le app and simulators.