Major changes: Code refactoring. Logger fixed. More configuration available.

backend.py Fixed logging