Minor changes, PIO bugfix

-Changes according to architect
-Added more documentation
-Bug fix PIO set pin