added current matrixes
added __main__ routine back in
added session handling via beaker