adding docs, made read/writeInt(bits) private in favor of saner API