PIT bugs fixed and PIT mode 2 added.
Merge pull request #1 from Alegend45/master

PIT bugs fixed and PIT mode 2 added.