Cleaned/formatted the codes