Added getPathComponents(path)
Merge pull request #2 from alakazard12/patch-1

Added getPathComponents(path)