Remove trailing spaces
Small fix
Add isValid()
Merge pull request #14 from tkrotoff/develop

Add isValid()