General cleaning
General cleaning

Added helper functions, comment headers, fixed an error (pin number was
being used instead of pgio number, tests didn't reveal that since pin 2
was being used, and its gpio number is also 2 !)

Ormindo/berryllio,Ormindo/berryllio