1. Fix the unknown variable pardir 2. Edit coding style