fixed two coding errors
major refactoring

- moved real algorithm to a regular algorithm class
- refactored static Secret class to be a simple facade to the algorithm
- moved random number generation into own component

fixed doc blocks
removed unnecessary constant