fix the warnings. Comment out unused functions and remove unused imports.