Added comments and removed unused imports.