added global delete and paste bindings
cleaned up whitespace and reindented