vendor and package name, sizeof(), fixes #2, #3

vendor and package name to lowercase
using sizeof() instead of count()