add random secret generation + beautify code
beautify code