more efficient fix for digitalread/write
added big digital read/write test
improved digital read/write and added deinit to docs