Renamed namespace pat to Pat due to conventions of doc block
Added license
New rules for code sniffing
Changes to satisfy Code Sniffer rules