Fixed errors

Fixes #2
Merge pull request #3 from AndreaGiardini/master

Fixed errors by AndreaGiardini