Deleted some unused functions, added some comments