added fromBits tests
added tests and demos for digits methods