Added PPM read/write functions (part 2).