Added commands to palette
Tidied some things up.