Big refactor

No more classes for major components,

Everyhing are namespaced functions

Instruction timing has increased a bit