Added documentation to get_data() function