add composer.lock
add phpunit, main classes and tests
implemented core functionality