Context manager

refactored harprofiler into a Context Manager class.
+1
nice.. I'll change my code