Added unit-tests for API with one callback; slight refactoring;
supplemented .gitignore
Unit-tests supplemented and refactored