Removed unused package calc, implemented aggregation on local facts, inserting of local facts, and displaying of results