Lots of Memory leak Added.

Fixed unsigned int problem with arrows.