- Added global exception handling
- some refactorings