Remapped saving to file to 'w'

This matches vim's scheme better
Added sorting of nodes