Text this: Topological Invariants of Principal G-Bundles with Singularities