Improved gpiopin a bit, keeping file open now