added get_address functions

My first attempt at a pull request!