Updated:Added the afree() function, used to free-up the used space