Added stopwatch, error handler and improved TSingleton
Merge https://github.com/Naronco/Enco3D