Allowed running apimonitor from arbitrary directory
fix outdir bug
Add old stuff
modify testMonitor.py