Added a bit of package name validation

Also cleaned up a bit of indentation that was wrong in my last commit
Merge pull request #4 from Flytomars-/master

Added a bit of package name validation