Added some debugging test code to mainactivity, feel free to remove/change