Refactor manager api class
- added missing return values
- updated checkHashAlgorithm
- removed superfluos variables
- added missing variables