fix phpdoc
add gitignore
prepare for unit tests
add the first tests