added bouncycastle to gradle and fixed imports