Fix getting filename parts.
Add _getFileNameParts documentation
Check file name length as well.
Remove duplicate _getFileNameParts call
Merge pull request #15 from ohmanger/rename-fix

Couple of length checking fixes.

Thank you for your contribution!