refactor methodnames logic into methodName method
Avoid upper/lowercase dups on generated classes
refactor checkModuleFree into separate function
don't hang when strpad padding argument is empty string