added notes and removed some warnings (unused imports)