fixed some input bugs
automatically added build files
Merge pull request #316 from massiveart/bugfix/input-validation

[BUGFIX] input validation