Added edit menu
Fixed warnings