Added parser for pin direction file