Cleanup + Errors in main
Wip on global pattern list