added the working sample code
added timeout ability for pulsein
happy with this method of coding
Merge pull request #1 from macGRID-SRN/master

fixing master to dev.. my fault