copy working version from paxgen branch
Copy working version of hausbauer.cc