MagmaPathselectionEvent added.
Code clean.
MagmaPath queries for table counts so that variable summaries and values works