added support for removing and clearing configuration. Tidied the code a little. Improved feedback to users when commands don't work