Rename DocumentStub to DocumentBase and replace tabs to spaces