Added setup script. Modified java part. Moved bash completion section.