Revert "Added some checks to the configuration file reading, fixed testpan2"

This reverts commit 93fcf593153fdb7df192fbf57f1745ada7217b8e.
Revert "I added some things that i have not fixed all up and things"

This reverts commit a654250c3e8d18b994fbd5ba52acd71ad77b94c9.