fixed errors
Merge pull request #2 from Fludimir/master

fixes warnings