Started support for code tracing
Trivial endian bugfixes