fix buildcovmat
modify prediction test
use own semivariance function
module indentation for nicer code