Completed location functionality. tested in iOS7