refactored backend logging
added Failer unit to calculator.py, for testing