adds '/clear' functionality, fixes error messages