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