Slightly refactored the code in the main file. Removed double config. Added await for Redis connection to be fully established. Added Redis error handling. fixes #9