.DS_Store in gitignore
formatting
added tests
added work with absolute path in fragments

refactoring