Cleanups and renaming.

- Added a version option
- Renamed artifacts in the pom
- Fixed error handling for index related problems