Added getBalance; wiped unused code; added buttons for test application