Added SchemaFactory, modified package installer and loader