Pull request for arduino support

This is a pull request to discuss development of an arduino port of the library. To not merge yet