fixed reader.c. writer.c now compiles (though still needs work). prkdc works quite well.