fix cipher java cryptography bug, added copyright notices