Fixing median calculations, incorrect wage summations and adding calculation for finding the mode of literacy