Set default target to build
Check count of arguments before referencing them

Got segfaults here.
Merge pull request #2 from michael105/master

minor fixes