Code refactor.
Adding config file.
Move secret key to config file.