Added license header to PLC tutorial.
Fixed unused local typedef warnings in PLC reader.

Reported by GCC 4.8.