Add __init__.py, module core.py defining main objects and some test