Added the reading / writing of doubles