bitpos command implementation
fix tests
Merge pull request #501 from jettify/master

Added bitpos command