fixed system instantiation; added support for querying entities with multiple components
added some debug text