Move to single chapter pdf production
fix argument parsing