Added entity formatting functionality. Renamed the EventSubgraph to Subgraph because it is generic.
Refactored subpackages back to root package.