Updated required interface for frontends
Numerous variable name fixes
Split twisted into a module