Fixed tab/space formatting. New methods to GazeUtils. Minor internal refactoring