Added some documentation to gpio functions