Improved error handling

Deleted catches from filetools
Stack trace printer
Improved error handlind