Read package name from DESCRIPTION

Fixes #5, includes #3 (the fix for #2)

Also, run R CMD check from .tar.gz instead of from directory, to avoid checking files like .gitignore; see http://stackoverflow.com/a/8887542/946850 (ca3b866)

Adds some refactorings