finished main function for A.py
cleaned up some comments and improved the signature on make3DHist