Refactoring & new functionality

- removed the ! from the sample functions, because the rbi is not
changed when the function is called
- added inverse functions to get double value from binary vectors