Tabs, attack patterns

Cleaned up the tabs. Added the preliminary attack pattern code.