Commented all the functions and removed uneccessary functions