Indent cleanup
Adding checking for opening stream error
Fix to signs of CTL offset