roxygenized and added map dataframe functionality