Sign jar; refactor code by removing unused code