Added clear button

cleaned up a few things while i was at it.