minor change
added support for reading/writing from/to single bits