Removed the old tmp folder and added a main method to iohandler.c for testing