Added debug code and fixed an Bug in normSize.