Refactor parser
avoid splitPath and parsePart methods
Merge pull request #2 from golyshevd/refactor

Refactor parser