Removed unused imports and added serial version ids.