Refactors envspecular and add tool to the makefile