Fix some small java issues

Fix:
- remove unused import
- add serialVersionUID to some Exception classes