Input validation

TO TEST: If you wish to test this pull request, please follow the build instructions on the above issue and then add this branch for testing. 

This request will close bugs: 
https://github.com/opentechinstitute/commotion-debug-helper/issues/2
https://github.com/opentechinstitute/commotion-debug-helper/issues/6

<!---
@huboard:{"order":35.0}
-->