Added integer pattern matching
Added clear button