Refactored and added some functions such as deletion of locations and days.