format code and refactoring

in the near future I will make adequate encryption and decryption algorithm will write