Added a preliminary logger to __init__.py, and some helper functions to mapper.py