fixed a segfault, improved normal vector calculation but still wrong though...

a view improvements