Resolved some warnings.
Merge pull request #241 from sburnicki/removed_warnings

Resolved some warnings