Updated the examples to be in line with examples from our other repositories.
Changed read_with_timeout to actually use read_with_timeout. Partially working, still need to get the string passed back from the function by reference.