updated metrics, fixed complex number bug
added progress reporting
significatly improved performace