validates input
Merge branch 'master' of https://github.com/thorups/CS419