Replace all tab characters with 4x space
Initial work on centralised error handler