fix return types
added redis dependency
code refactoring
fix imports
change package case