Add more AS patterns
Better printing in scripts
Refactor patterns as dicts
FIX bug in pattern