Renamed 'Namespace' to 'PropertyNamespace' to avoid keyword confusion.
Aborts and errors if output stream couldn't be created.
Added progress update, converted \n to endl
Removed redundant method, cached indentation when creating namespace scope.
Comment pass