update gitignore
add initial tests
refactor IPv4 check
Merge pull request #101 from yast/example_refactoring

Example refactoring