Merge pull request #3 from ivaniacono/master

This pull requests adds I2C and SPI support and improves the PWM existing support
Merge pull request #4 from ivaniacono/master

syncronizing repository
fixed compile errors
fixed compile errors
make sure ebin directory is created before compiling.