Added SVMscale, fixed problem with externs