adding debug option
calling blas2 reference to check interface, plus some cleanup