function to list modules and their metadata