Carla: A code to calculate the population of high spin states through compound nucleus reactions