Lots of debugging. Added simple benchmark test; script for profile graph generation