Merge pull request #15 from lowks/master

Using pathlib in code to simplify the code
last changes for pathlib