Added the reading and writitng of booleans