Implemented basic bit/byte/int writing.